home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 September / PCWorld_2004-09_cd.bin / software / topware / winamp / winamp504_full.exe / $R0 / Winamp Modern / mainmenuoverlay.m < prev    next >
Text File  |  2004-07-01  |  535b  |  25 lines

  1. #include <lib/std.mi>
  2. #include "attribs.m"
  3.  
  4. Function setOverlay();
  5.  
  6. Global Layer VideoVisTextOverlay;
  7.  
  8. System.onScriptLoaded() {
  9.     initAttribs();
  10.     VideoVisTextOverlay=getScriptGroup().findObject("menubar.right.textoverlay");
  11.     setOverlay();
  12. }
  13.  
  14. video_detach_attrib.onDataChanged() {
  15.     setOverlay();
  16. }
  17.  
  18. vis_detach_attrib.onDataChanged() {
  19.     setOverlay();
  20. }
  21.  
  22. setOverlay() {
  23.     if (vis_detach_attrib.getData() == "1" && video_detach_attrib.getData() == "1") VideoVisTextOverlay.hide();
  24.     else VideoVisTextOverlay.show();
  25. }